/**
 * 将对象里面的某些类型给排除掉
 * @param obj 要改变的对象
 * @param exclude 需要排除的类型
 */
export function useChangeObj(obj: Object, exclude: string) {
  Object.keys(obj).forEach((key: string) => {
    if (typeof obj[key] === exclude) {
      delete obj[key]
    }
  });
  return obj;
}
